<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<body>
<div th:fragment="tab">
	<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element" style="text-align: center;">
                    <span>
	                    <!-- <img alt="image" class="img-circle" th:if="${avatar==null}" th:src="@{/static/img/logos.png}" width="45px"/> -->
	                     <img alt="image" class="img-circle" th:src="@{/static/login/img/logo.png}"     />
                    </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                       <span class="block m-t-xs"><strong class="font-bold">管理员</strong></span>
                        <span class="text-muted text-xs block" th:text="${userName}">${userName}<b class="caret"></b></span>
                        </span>
                    </a>
                     <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a class="J_menuItem" th:href="@{/sys/sysUser/user_info}">个人资料</a></li>
                        <li><a class="J_menuItem" th:href="@{/sys/sysUser/user_chpwd}">修改密码</a></li>
                        <li class="divider"></li>
                        <li><a th:href="@{/login/logout}">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">Mx
                </div>
            </li>
            

              <li th:each="title,iterStat:${titles}">
                  <a class="J_menuItem" th:href="@{${title.url}}" th:if="title.children==null">
                      <i class="fa ${title.icon}"></i>
                      <span class="nav-label" th:text="${title.name}">${title.name}</span>
                  </a>
                  <a href="#"  th:if="title.children!=null">
                         <i class="fa ${title.icon}"></i>
                         <span class="nav-label" th:text="${title.name}"></span>
                         <span class="fa arrow"></span>
                   </a>
                  <ul class="nav nav-second-level"  th:if="title.children!=null">
                       <li  th:each="subTitle,iterStat:${title.children}">
                           <a class="J_menuItem" th:href="@{${subTitle.url}}" th:text="${subTitle.name}"></a>
                       </li>
                  </ul>
              </li>
                  
        </ul>
    </div>
</nav>
</div>
</body>
</html>